package com.jobcn.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Spider相关参数的对象
 * Created by winson on 17-7-3.
 */
@Component
@ConfigurationProperties(prefix = "spider")
public class SpiderConfig {
    private int thread;
    private int retryTimes;
    private int sleepTimes;
    private int timeOut;
    private int cycleRetryTime;
    private String usHost;
    private String acceptEncoding ;
    private String charset;
    private String userAgent;
    private int ipPool;

    public int getThread() {
        return thread;
    }

    public void setThread(int thread) {
        this.thread = thread;
    }

    public int getRetryTimes() {
        return retryTimes;
    }

    public void setRetryTimes(int retryTimes) {
        this.retryTimes = retryTimes;
    }

    public int getSleepTimes() {
        return sleepTimes;
    }

    public void setSleepTimes(int sleepTimes) {
        this.sleepTimes = sleepTimes;
    }

    public int getTimeOut() {
        return timeOut;
    }

    public void setTimeOut(int timeOut) {
        this.timeOut = timeOut;
    }

    public int getCycleRetryTime() {
        return cycleRetryTime;
    }

    public void setCycleRetryTime(int cycleRetryTime) {
        this.cycleRetryTime = cycleRetryTime;
    }

    public String getUsHost() {
        return usHost;
    }

    public void setUsHost(String usHost) {
        this.usHost = usHost;
    }

    public String getAcceptEncoding() {
        return acceptEncoding;
    }

    public void setAcceptEncoding(String acceptEncoding) {
        this.acceptEncoding = acceptEncoding;
    }

    public String getCharset() {
        return charset;
    }

    public void setCharset(String charset) {
        this.charset = charset;
    }

    public String getUserAgent() {
        return userAgent;
    }

    public void setUserAgent(String userAgent) {
        this.userAgent = userAgent;
    }

    public int getIpPool() {
        return ipPool;
    }

    public void setIpPool(int ipPool) {
        this.ipPool = ipPool;
    }
}
